package blog.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import blog.entity.Options;
import blog.mapper.OptionsMapper;
import blog.service.OptionsService;

@Service
public class OptionsServiceImpl implements OptionsService{
	 @Resource
	    private OptionsMapper optionsMapper;

	    @Override
	   // @Cacheable(value = "default", key = "'options'")
	    public Options getOptions() {
	        return optionsMapper.getOptions();
	    }

	    @Override
	   // @CacheEvict(value = "default", key = "'options'")
	    public void updateOptions(Options options) {
	        optionsMapper.updateOptions(options);
	    }
}
